import request from '@/utils/request'

//根据产品和机型查询货号及详细规格参数
export function listItemNoDetailByProjectAndMachineType(query) {
  return request({
    url: '/product/reagentForm/listItemNoDetailByProjectAndMachineType',
    method: 'get',
    params: query
  })
}


// 查询试剂单列表
export function listReagentForm(query) {
  return request({
    url: '/product/reagentForm/list',
    method: 'get',
    params: query
  })
}

// 查询试剂单详细
export function getReagentForm(reagentFormId) {
  return request({
    url: '/product/reagentForm/' + reagentFormId,
    method: 'get'
  })
}

// 新增试剂单
export function addReagentForm(data) {
  return request({
    url: '/product/reagentForm',
    method: 'post',
    data: data
  })
}

// 修改试剂单
export function updateReagentForm(data) {
  return request({
    url: '/product/reagentForm',
    method: 'put',
    data: data
  })
}

// 删除试剂单
export function delReagentForm(reagentFormId) {
  return request({
    url: '/product/reagentForm/' + reagentFormId,
    method: 'delete'
  })
}

// 导出试剂单
export function exportReagentForm(query) {
  return request({
    url: '/product/reagentForm/export',
    method: 'get',
    params: query
  })
}

// 查询试剂单列表
export function getByItemNo(query) {
  return request({
    url: '/product/reagentForm/getByItemNo',
    method: 'get',
    params: query
  })
}
